package io.kiki.sba.registry.common.model.metaserver;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import io.kiki.sba.registry.compress.CompressConstants;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@JsonIgnoreProperties(ignoreUnknown = true)
public class CompressDatumSwitch {
    private boolean enabled = false;

    @JsonSetter(nulls = Nulls.SKIP)
    private int compressMinSize = CompressConstants.defaultCompressDatumMinSize;

    public static CompressDatumSwitch defaultSwitch() {
        return new CompressDatumSwitch();
    }


}
